package com.hoshiibuy.dictionary.controller;

import com.hoshiibuy.dictionary.service.IDicDegreeLevelService;
import com.hoshiibuy.dictionary.entity.DicDegreeLevelVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author guangjinwei
 * @create 2019-04-18
 */

@RestController
@RequestMapping("dicDegreeLevel/")
@Api(value = "学历信息管理", tags = {"学历信息操作接口"})
public class DicDegreeLevelController {
    @Autowired
    IDicDegreeLevelService dicDegreeLevelService;

    @RequestMapping(value = "/saveDicDegreeLevel", method = RequestMethod.POST)
    @ApiOperation(
            value = "保存学历信息",
            notes = "保存学历信息",
            produces = "application/json, application/xml",
            consumes = "application/json, application/xml")
    public void saveDicDegreeLevel(DicDegreeLevelVo dicDegreeLevelVo){

        dicDegreeLevelService.saveDicDegreeLevel(dicDegreeLevelVo);
    }

    @RequestMapping(value = "/findDicDegreeLevelList", method = RequestMethod.GET)
    @ApiOperation(
            value = "查询学历信息",
            notes = "查询学历信息",
            produces = "application/json, application/xml",
            consumes = "application/json, application/xml")
    public void findDicDegreeLevelList(){
        dicDegreeLevelService.findDicDegreeLevelList();
    }
}
